import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPObject;

import java.util.*;

public class Test0001 {
    public static String seatJSON = "[{\"channel_mapping_id\":\"62d1406a0ac8a409263ccee1\",\"channel_seat_id\":\"20022849\",\"ticket_status\":\"SoldOut\",\"graph_col\":11,\"graph_row\":15,\"row\":\"14\",\"col\":\"17\",\"seat_no\":\"20022849\"},{\"channel_mapping_id\":\"62d1406a0ac8a409263ccf5c\",\"channel_seat_id\":\"20022805\",\"ticket_status\":\"OnSale\",\"graph_col\":6,\"graph_row\":13,\"row\":\"12\",\"col\":\"19\",\"seat_no\":\"20022805\"},{\"channel_mapping_id\":\"62d1406a0ac8a409263ccf64\",\"channel_seat_id\":\"20022813\",\"ticket_status\":\"OnSale\",\"graph_col\":14,\"graph_row\":13,\"row\":\"12\",\"col\":\"11\",\"seat_no\":\"20022813\"},{\"channel_mapping_id\":\"62d1406a0ac8a409263cd003\",\"channel_seat_id\":\"20022684\",\"ticket_status\":\"SoldOut\",\"graph_col\":11,\"graph_row\":7,\"row\":\"6\",\"col\":\"11\",\"seat_no\":\"20022684\"}]";

    // {
    // "channel_mapping_id": "62d1406a0ac8a409263ccee1",
    // "channel_seat_id": "20022849",
    // "ticket_status": "SoldOut",
    // "graph_col": 11,列
    // "graph_row": 15,排
    // "row": "14",
    // "col": "17",
    // "seat_no": "20022849"
    // }
    //题目内容：已知graph_row为实际座位的物理排，graph_col为实际座位的物理列。
    //根据已知的json字符串的该场次所有座位在售状态的数据计算出其中能生成2连坐和3连坐可以售卖的数量。只有ticket_status=OnSale 的座位是可售卖的
    public static void main(String[] args) {
        JSONArray array = JSON.parseArray(seatJSON);       
       

    }
}